import request from '@/utils/request'

//列表
export function getRules(params) {
  return request({
    url: 'parking/rule/list',
    params
  })
}

//删除
export function delRules(id) {
  return request({
    method: 'DELETE',
    url: `parking/rule/${id}`
  })
}

//添加
export function addRules(data) {
  return request({
    method: 'POST',
    url: 'parking/rule',
    data
  })
}

//获取详情
export function getRuleDetailById(id) {
  return request({
    url: `parking/rule/${id}`
  })
}
//编辑
export function editRules(data) {
  return request({
    method: 'PUT',
    url: 'parking/rule',
    data
  })
}
